﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

[assembly: CLSCompliant(true)]
namespace Bll
{
	public class DataGroup
	{
		private Dal.DataGroup dg;
		private DataTable dt;
		private int countRow = 0;
		private int countPage = 0;
		
		public DataGroup(Dal.DataGroup tmpDG)
		{
			dg = tmpDG;
			dt = tmpDG.DT;
			countRow = tmpDG.Row;
			countPage = tmpDG.Page;
		}
		public DataTable DT
		{
			get { return dt; }
		}
		public int Row
		{
			get { return countRow; }
		}
		public int Page
		{
			get { return countPage; }
		}
		protected virtual void Dispose(bool disposing)
		{
			if (disposing)
			{
				dg.Dispose();
				dg = null;
				dt = null;
				countRow = 0;
				countPage = 0;
			}
		}
		public void Dispose()
		{
			Dispose(true);
		}
	}
}
